<template>
    <div class="app-container">
        <card-container
            ref="card685"
            :show-row-column="showRowColumn"
            :list="list"
            :list-loading="listLoading"
            :field-valid="fieldValid"
            @loadMore="loadMore" />
    </div>
</template>

<script>
import cardContainer from '@/components/card/card-container'
import cardInterface from '@/mixins/cardInterface'

export default {
    name: 'card685',
    components: { cardContainer },
    mixins: [cardInterface],
    data() {
        return {
            formId: '685',
            showRowColumn: [
                { formColumnId: '21116', relcolumnId: 'ORGDEPARTMENT_DEPCODE', columnId: 'ORGDEPARTMENT_DEPCODE', columnName: '组织编码' },
                { formColumnId: '21117', relcolumnId: 'ORGDEPARTMENT_CNAME', columnId: 'ORGDEPARTMENT_CNAME', columnName: '组织名称' },
                { formColumnId: '92068', relcolumnId: 'DEPVPEOPLECOUNT_NUM', columnId: 'DEPVPEOPLECOUNT_NUM', columnName: '人数' },
                { formColumnId: '21118', relcolumnId: 'ORGDEPARTMENT_ENAME', columnId: 'ORGDEPARTMENT_ENAME', columnName: '组织简称' },
                { formColumnId: '21122', relcolumnId: 'ORGDEPARTMENT_DEPTYPE', columnId: 'ORGDEPARTMENT_DEPTYPE_DICTNAME', columnName: '组织类型' },
                { formColumnId: '21121', relcolumnId: 'ORGDEPARTMENT_DEPGRADE', columnId: 'ORGDEPARTMENT_DEPGRADE_DICTNAME', columnName: '组织级别' },
                { formColumnId: '61637', relcolumnId: 'ORGDEPARTMENT_DEPAREA', columnId: 'ORGDEPARTMENT_DEPAREA_DICTNAME', columnName: '机构区域' },
                { formColumnId: '61638', relcolumnId: 'ORGDEPARTMENT_ISALLOW', columnId: 'ORGDEPARTMENT_ISALLOW_DICTNAME', columnName: '是否享受海岛津贴' },
                { formColumnId: '61639', relcolumnId: 'ORGDEPARTMENT_HANGLEADER', columnId: 'ORGDEPARTMENT_HANGLEADER_DICTNAME', columnName: '挂片领导' },
                { formColumnId: '61640', relcolumnId: 'ORGDEPARTMENT_ISPROTECT', columnId: 'ORGDEPARTMENT_ISPROTECT_DICTNAME', columnName: '是否保护期' },
                { formColumnId: '21124', relcolumnId: 'ORGDEPARTMENT_DEPKIND', columnId: 'ORGDEPARTMENT_DEPKIND_DICTNAME', columnName: '业务条线' },
                { formColumnId: '21123', relcolumnId: 'ORGDEPARTMENT_DEPCOST', columnId: 'ORGDEPARTMENT_DEPCOST_DICTNAME', columnName: '成本中心' },
                { formColumnId: '21119', relcolumnId: 'ORGDEPARTMENT_COMPID', columnId: 'ORGDEPARTMENT_COMPID_DICTNAME', columnName: '所属公司' },
                { formColumnId: '21120', relcolumnId: 'ORGDEPARTMENT_PARENTID', columnId: 'ORGDEPARTMENT_PARENTID_DICTNAME', columnName: '上级组织' },
                { formColumnId: '21134', relcolumnId: 'ORGDEPARTMENT_CREATEDATE', columnId: 'ORGDEPARTMENT_CREATEDATE_NEWDATE', columnName: '成立日期' },
                { formColumnId: '21132', relcolumnId: 'ORGDEPARTMENT_LEADER', columnId: 'ORGDEPARTMENT_LEADER_DICTNAME', columnName: '分管领导' },
                { formColumnId: '50755', relcolumnId: 'ORGDEPARTMENT_LEADERSHIP', columnId: 'ORGDEPARTMENT_LEADERSHIP_DICTNAME', columnName: '协管领导' },
                { formColumnId: '21130', relcolumnId: 'ORGDEPARTMENT_XORDER', columnId: 'ORGDEPARTMENT_XORDER', columnName: '排序' },
                { formColumnId: '21138', relcolumnId: 'ORGDEPARTMENT_REMARK', columnId: 'ORGDEPARTMENT_REMARK', columnName: '备注' },
                { formColumnId: '92069', relcolumnId: 'ORGDEPARTMENT_DISABLEDDATE', columnId: 'ORGDEPARTMENT_DISABLEDDATE', columnName: '失效日期' },
                { formColumnId: '83907', relcolumnId: 'ORGDEPARTMENT_UPDATETIME', columnId: 'ORGDEPARTMENT_UPDATETIME_NEWDATE', columnName: '最近修改日期' },
                { formColumnId: '61762', relcolumnId: 'ORGDEPARTMENT_ISFININSTITU', columnId: 'ORGDEPARTMENT_ISFININSTITU_DICTNAME', columnName: '是否人行金融机构' },
                { formColumnId: '61763', relcolumnId: 'ORGDEPARTMENT_FININSTITU', columnId: 'ORGDEPARTMENT_FININSTITU', columnName: '人行金融机构代码' },
                { formColumnId: '61764', relcolumnId: 'ORGDEPARTMENT_WEBNUM', columnId: 'ORGDEPARTMENT_WEBNUM', columnName: '网点号' },
                { formColumnId: '61765', relcolumnId: 'ORGDEPARTMENT_PROAGENCCODE', columnId: 'ORGDEPARTMENT_PROAGENCCODE', columnName: '省联社机构代码' },
                { formColumnId: '84140', relcolumnId: 'ORGDEPARTMENT_MANAGEREGION', columnId: 'ORGDEPARTMENT_MANAGEREGION_DICTNAME', columnName: '管辖区域' }
            ],
            list: [],
            listLoading: true,
            requestParam: {
                'ORGVORGANIZATION_DEPCODE': ''
            },
            // 搜索字段
            filterData: {
                DEPVPEOPLECOUNT_NUM: '',
                ORGDEPARTMENT_CNAME: '',
                ORGDEPARTMENT_DEPCODE: '',
                ORGDEPARTMENT_DEPGRADE: '',
                _INTERVAIL_MAX_ORGDEPARTMENT_CREATEDATE: '',
                _INTERVAIL_MIN_ORGDEPARTMENT_CREATEDATE: ''
            },
            totalData: -1,
            pager: {
                offset: 1,
                limit: 10
            },
            fieldValid: {}
        }
    },
    async created() {
    },
    methods: {
        loadMore() {
            this._cardformInitData('loadMore')
        }
    }
}
</script>

